projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8566218
)
text: Simplify
author
Benjamin Otte
<otte@redhat.com>
Fri, 8 Mar 2019 13:12:17 +0000
(14:12 +0100)
committer
Benjamin Otte
<otte@redhat.com>
Fri, 8 Mar 2019 13:12:17 +0000
(14:12 +0100)
The previous arguments were equivalent to using NULL.
gtk/gtktext.c
patch
|
blob
|
history
diff --git
a/gtk/gtktext.c
b/gtk/gtktext.c
index 6dd9ecac494e1c79bd51c3676d6a5c499c4d3375..99a5afba37004352cf449725cbd562a392f3470f 100644
(file)
--- a/
gtk/gtktext.c
+++ b/
gtk/gtktext.c
@@
-2054,9
+2054,7
@@
gtk_text_measure (GtkWidget *widget,
PangoFontMetrics *metrics;
context = gtk_widget_get_pango_context (widget);
- metrics = pango_context_get_metrics (context,
- pango_context_get_font_description (context),
- pango_context_get_language (context));
+ metrics = pango_context_get_metrics (context, NULL, NULL);
if (orientation == GTK_ORIENTATION_HORIZONTAL)
{